import SvgIcon from './SvgIcon/index.vue'
import Category from './Category/index.vue'
const allGloablComponent:any = { SvgIcon, Category}
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
export default {
  install(app:any) {
    //注册项目的全部的全局组件
    Object.keys(allGloablComponent).forEach(key => {
      app.component(key, allGloablComponent[key])
    })
    //将ElementPlus提供的图标注册为全局组件
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      app.component(key, component)
    }
  },
}
